GHCのcompile workflow
GHCでHaskellコードをどのようにcompileしていくか
https://gyazo.com/2ec74e99016b201ef9d03220126790f6 https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/compiler/hsc-main https://gyazo.com/b15f9b8ea98dd15c0d903591ea4bbeba https://www.semanticscholar.org/paper/An-llVM-backend-for-GHC-Terei-Chakravarty/17754503dc6907d8ba9399b300bc566ce3a7ad3f
大雑把なworkflow
Haskell
GHCのCore言語
Haskellから機能を制限し、型を拡張したsimpleな中間言語
STG
抽象機械,大体の実行時の動作を表す表現
C--
GHCのbackend
NCG
LLVM IR
unregisterised via-C backend
参考
https://takenobu-hs.github.io/downloads/haskell_ghc_illustrated.pdf
https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/compiler/hsc-main
https://takenobu-hs.github.io/downloads/haskell_ghc_reading_guide.pdf